<div class="facultets view">
<h2><?php  __('Facultet');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $facultet['Facultet']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Educationlevel'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($facultet['Educationlevel']['name'], array('controller' => 'educationlevels', 'action' => 'view', $facultet['Educationlevel']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $facultet['Facultet']['name']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Facultet', true), array('action' => 'edit', $facultet['Facultet']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete Facultet', true), array('action' => 'delete', $facultet['Facultet']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $facultet['Facultet']['id'])); ?> </li>
		<li><?php echo $html->link(__('List Facultets', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Facultet', true), array('action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Educationlevels', true), array('controller' => 'educationlevels', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Educationlevel', true), array('controller' => 'educationlevels', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Professions', true), array('controller' => 'professions', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Profession', true), array('controller' => 'professions', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Ratings', true), array('controller' => 'ratings', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Rating', true), array('controller' => 'ratings', 'action' => 'add')); ?> </li>
		<li><?php echo $html->link(__('List Targetingintakes', true), array('controller' => 'targetingintakes', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Targetingintake', true), array('controller' => 'targetingintakes', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Professions');?></h3>
	<?php if (!empty($facultet['Profession'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Facultet Id'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Code'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($facultet['Profession'] as $profession):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $profession['id'];?></td>
			<td><?php echo $profession['facultet_id'];?></td>
			<td><?php echo $profession['name'];?></td>
			<td><?php echo $profession['code'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'professions', 'action' => 'view', $profession['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'professions', 'action' => 'edit', $profession['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'professions', 'action' => 'delete', $profession['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $profession['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Profession', true), array('controller' => 'professions', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Ratings');?></h3>
	<?php if (!empty($facultet['Rating'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Facultet Id'); ?></th>
		<th><?php __('Profession Id'); ?></th>
		<th><?php __('Learningform Id'); ?></th>
		<th><?php __('Learningtype Id'); ?></th>
		<th><?php __('Rating'); ?></th>
		<th><?php __('Status'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($facultet['Rating'] as $rating):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $rating['id'];?></td>
			<td><?php echo $rating['facultet_id'];?></td>
			<td><?php echo $rating['profession_id'];?></td>
			<td><?php echo $rating['learningform_id'];?></td>
			<td><?php echo $rating['learningtype_id'];?></td>
			<td><?php echo $rating['rating'];?></td>
			<td><?php echo $rating['status'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'ratings', 'action' => 'view', $rating['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'ratings', 'action' => 'edit', $rating['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'ratings', 'action' => 'delete', $rating['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $rating['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Rating', true), array('controller' => 'ratings', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Targetingintakes');?></h3>
	<?php if (!empty($facultet['Targetingintake'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Tgintakeorg Id'); ?></th>
		<th><?php __('Abiturient Id'); ?></th>
		<th><?php __('Region Id'); ?></th>
		<th><?php __('Facultet Id'); ?></th>
		<th><?php __('Profession Id'); ?></th>
		<th><?php __('Learningform Id'); ?></th>
		<th><?php __('Learningtype Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($facultet['Targetingintake'] as $targetingintake):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $targetingintake['id'];?></td>
			<td><?php echo $targetingintake['tgintakeorg_id'];?></td>
			<td><?php echo $targetingintake['abiturient_id'];?></td>
			<td><?php echo $targetingintake['region_id'];?></td>
			<td><?php echo $targetingintake['facultet_id'];?></td>
			<td><?php echo $targetingintake['profession_id'];?></td>
			<td><?php echo $targetingintake['learningform_id'];?></td>
			<td><?php echo $targetingintake['learningtype_id'];?></td>
			<td><?php echo $targetingintake['created'];?></td>
			<td><?php echo $targetingintake['modified'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'targetingintakes', 'action' => 'view', $targetingintake['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'targetingintakes', 'action' => 'edit', $targetingintake['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'targetingintakes', 'action' => 'delete', $targetingintake['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $targetingintake['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Targetingintake', true), array('controller' => 'targetingintakes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
